package com.learner.pojo.course;

import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author ice2020x
 * @Description: 课程分类
 */
@Data
@ToString
@Entity(name = "course_category")
@Table(name = "course_category")
@GenericGenerator(name = "jpa-assigned", strategy = "assigned")
public class Category implements Serializable {

    private static final long serialVersionUID = -2592648335091365000L;

    public Category() {
    }

    /**
     * 自己填，不要重复
     */
    @Id
    @Column(length = 32)
    private String id;
    /**
     * 课程名字
     */
    private String name;


    /**
     * 标签
     */
    private String label;

    /**
     * 父节点id
     */
    @Column(name = "parent_id")
    private String parentId;
    /**
     * 是否展示
     */
    private String isshow;
    /**
     * 排序依据
     */
    private Integer orderby;
    /**
     * 是不是叶子节点
     */
    private String isleaf;

}
